package com.hxx.ai;

import dev.langchain4j.service.UserMessage;
import jdk.jfr.Description;

import java.time.LocalDate;

public interface PersonExtractor {

    @UserMessage("Extract information about a person from {{it}}")
    Person extractPerson(String text);

    class Person{
        @Description("name of a person")
        private String name;

        private LocalDate birthDate;
    }
}